package com.cloud.config.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 2020/3/19
 * SimpleConfigClientController
 *
 * @author machuanpeng
 */
@RestController
@RefreshScope
public class AvailableConfigClientController {

    @Value("${fileName}")
    private String fileName;

    @RequestMapping(value = "/home")
    public String home(){
        return fileName;
    }
}
